package com.yyfax.pay.config.data.dao;

import java.util.List;

import com.yyfax.pay.config.model.po.MerchantConfigPO;

/**
 * 增商户信息
 * 
 * @author changxd
 * @date 2017-04-13
 * @since 1.0.0
 */
public interface MerchantConfigDao {

	/**
	 * 新增商户信息
	 * 
	 * @author qinqz
	 * @date 2017-04-12 10:38:31
	 * @since 1.0.0
	 * @return
	 */
	public int insert(MerchantConfigPO config) throws Exception;

	/**
	 * 更新商户信息
	 * 
	 * @author qinqz
	 * @date 2017-04-12 10:38:35
	 * @since 1.0.0
	 * @return
	 */
	public int update(MerchantConfigPO config) throws Exception;

	/**
	 * 按ID查询商户信息
	 * 
	 * @author qinqz
	 * @date 2017-04-12 10:38:38
	 * @since 1.0.0
	 * @return
	 */
	public MerchantConfigPO selectById(int id) throws Exception;

	/**
	 * 查询全部的商户信息
	 * 
	 * @author qinqz
	 * @date 2017-04-12 10:38:38
	 * @since 1.0.0
	 * @return
	 */
	public List<MerchantConfigPO> selectForList() throws Exception;

	/**
	 * 根据商户编号查询商户信息
	 * 
	 * @author changxd
	 * @date 2017-04-12 10:38:38
	 * @since 1.0.0
	 * @param merchantCode
	 * @return
	 * @throws Exception
	 */
	public MerchantConfigPO selectByMerchantCode(String merchantCode) throws Exception;

}
